﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Web.Configuration;
public partial class Userinfo_Tran : System.Web.UI.Page
{
    string connectString = WebConfigurationManager.ConnectionStrings["connect"].ConnectionString;

    protected void Page_Load(object sender, EventArgs e)
    {

<<<<<<< .mine
=======

        }

        catch (System.Exception ex)
        {
            throw new Exception(ex.Message);
        }
>>>>>>> .r58
    }
<<<<<<< .mine
}
=======
   
    protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
    {
        BlindProductToGridview();
    }
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        
        try
        {
            if (CON.State == ConnectionState.Closed)
                CON.Open();
            CMD = new SqlCommand("spDeleteAccount", CON);
            CMD.CommandType = CommandType.StoredProcedure;
            
            CMD.ExecuteNonQuery();
            BlindProductToGridview();
        }
        catch (Exception ex)
        {
            throw new Exception(ex.Message);
        }
        finally
        {
            CON.Close();
        }
    }
    protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
    {
        
        BlindProductToGridview();
    }
    }
>>>>>>> .r58
